<script setup>
// 首页子组件 - 展示协调化的背景图
</script>

<template>
  <div class="home-image-container">
    <!-- 图片层 -->
    <img 
      src="/backgroundRegister.jpg" 
      alt="系统首页背景图"
      class="system-background-image"
    />
    
    <!-- 蓝色蒙版层 -->
    <div class="blue-overlay"></div>
    
    <!-- 内容提示（可选） -->
    <div class="content-hint">
      <h2>欢迎使用灵职校盟管理系统</h2>
      <p>左侧导航栏选择功能模块</p>
    </div>
  </div>
</template>

<style scoped>
.home-image-container {
  position: relative;
  width: 100%;
  height: 88vh; /* 与导航栏保持协调 */
  overflow: hidden;
}

.system-background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7; /* 基础透明度 */
  filter: brightness(0.9); /* 降低亮度 */
}

.blue-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(25, 118, 210, 0.4) 0%, /* 系统主蓝色 */
    rgba(33, 150, 243, 0.2) 100%
  );
  mix-blend-mode: multiply; /* 混合模式增强协调性 */
}

.content-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 2;
}

.content-hint h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.content-hint p {
  font-size: 1.2rem;
  color: #e0e0e0;
}
</style>